@extends('admin.layouts.wap')
@section('title', '设置服务器域名')

@section('content')
<div class="row">
    <div class="col-md-12">
        <form id="comment-form" method="POST" action="{{ URL::current() }}">
            <div class="card">
                <div class="card-body">
                    <div class="m-form-item">
                        <label>小程序APPID</label>
                        <div class="m-col-3 m-xs-12">
                            <input type="text" class="m-input" name="appid" placeholder="请输入小程序APPID" value="{{ $appid }}" disabled="disabled">
                        </div>
                        @csrf
                    </div>
                    @foreach($modifydomains as $keyword => $modifydomain)
                    @if(in_array($keyword, ["requestdomain","wsrequestdomain","uploaddomain","downloaddomain","udpdomain","tcpdomain"]))
                    <div class="m-form-item">
                        <label>{{ $domains[$keyword] }}：</label>
                        <input type="text" class="m-input" name="{{ $keyword }}" value="{{ implode(',',$modifydomain) }}" placeholder="请输入{{ $domains[$keyword] }}；用,号隔开">
                    </div>
                    @endif
                    @endforeach

                    <div class="m-form-item">
                        <button class="m-form-btn m-mr-1" type="submit">立即保存配置</button>
                    </div>

                    <div class="m-info-item m-mt-1">
                        <label>服务器域名说明：</label>
                        <div class="text">
                            <ul>
                                <li>1、请不要自己设置服务器域名；</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>


@endsection
